<template>
  <div>
    <el-row>
      <el-col :span="24"><h1 style="text-align: center"> 采购入库</h1></el-col>
    </el-row>
    <el-row>
      <el-col :span="8">
        <el-form-item label="供应商">
          <el-input type="text" style="width: 60%;"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="采购人">

        </el-form-item>
      </el-col>
    </el-row>
    <span>采购商品</span>
    <el-table :data="cutObj" style="width: 100%;height:200px;">
      <el-table-column prop="" label="商品名称" width="300"/>
      <el-table-column prop="" label="品牌" width="300"/>
      <el-table-column prop="" label="采购价格" width="200"/>
      <el-table-column fixed="right" label="移除商品" width="250">
        <template #default="scope">
          <el-button type="primary" @click="find(scope.row.id)">查看</el-button>
          <el-button type="primary" @click="update(scope.row.id)">修改信息</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-row justify="center" >
      <el-col :span="5"  > <el-button type="primary" @click="find(scope.row.id)">添加商品</el-button></el-col>
      <el-col :span="5"> <el-button type="primary" @click="update(scope.row.id)">入库</el-button></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      cutObj:[]
    }
  }
}
</script>

<style scoped>

</style>